package sunluq.controller;

import sunluq.entity.SLQEntity;
import sunluq.service.SLQService;

import javax.annotation.Resource;
import java.util.List;

public class SLQController {
    List<SLQEntity> list = null;

    String name = null;
    @Resource
    SLQService sunluqservice;

    public String queryPage(){
        list =sunluqservice.queryPage(name);
        return "queryPage";
    }

    //@Resource @Autowired 作用相同 去spring容器中到bean实例
    //@Service @Component 向spring 容器中放入bean（类的对象）实例

    public List<SLQEntity> getList() {return list;}

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setList(List<SLQEntity> list) {
        this.list = list;
    }
}
